/**   
* @Title: SysRightController.java 
* @Description: TODO
* @author feifei
* @date 2015-4-30 上午09:58:08 
*/
package cn.ainit.sys.right;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/sysright")
public class SysRightController {
	
	@Resource
	private SysRightService sysRightService;
	public void setSysRightService(SysRightService sysRightService) {
		this.sysRightService = sysRightService;
	}
	
	/**
	 * 通用的列表界面的权限
	 * @param rightObj
	 * @param session
	 * @return
	 * @throws Exception
	 * @author feifei
	 * @date: 2015-5-4 上午09:33:30 
	 */
	@RequestMapping("listRight")
	public ReturnRightObj listRight(ReturnRightObj rightObj,HttpSession session ) throws Exception{
		try {
			rightObj=sysRightService.listPageRight(rightObj);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return rightObj;
	}
	
	
	
}
